dynamic_menu object

This method will tell you how many items have been added to the menu.

double get_item_count()

Parameters:
None.

Return value:
A double indicating the number of items currently added to the menu.

Remarks:
None.

Example:
// Make a simple menu and retrieve the number of items.

#include "dynamic_menu.bgt"

void main()
{
dynamic_menu test;
test.add_item("start_game.wav");
test.add_item("test_speakers.wav");
test.add_item("exit.wav");
alert("Menu example", test.get_item_count()+" items are currently stored in the menu.");
}